package com.mongo.demo;


import com.mongo.IndexServiceApplicationTests;
import org.springframework.core.io.UrlResource;

import java.net.URL;
import java.util.Enumeration;
import java.util.Properties;

public class SpringBootDemo {
    public static void main(String[] args) {
        IndexServiceApplicationTests indexServiceApplicationTests = new IndexServiceApplicationTests();
        try {
            Enumeration<URL> urls = indexServiceApplicationTests.getClass().getClassLoader().getResources("META-INF/spring.factories");
            System.out.println("urls:" + urls);
            while(urls.hasMoreElements()){
                URL url = urls.nextElement();
                System.out.println("urlItem:"+url);
            }


        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
